{include file="header.tpl"}
<h3>Nowa oferta praktyki</h3>
<form action="new_practice.php" method="post">
	<label for="">Miasto</label>
	<select id="city" name="city">
		{foreach item=city from=$cities}
			<option value="{$city.id}">{$city.city}</option>
		{/foreach}
	</select>
	<br/>
	<label for="date_start">Od dnia:</label><input type="text" id="date_start" name="date_start"/><br/> 
	<label for="date_end">Do dnia:</label><input type="text" id="date_end" name="date_end"/><br/> 
	<label for="amount">Ilość miejsc</label><input type="text" id="amount" name="amount"/><br/>
	<label for="paid">Praktyka płatna?</label><input type="checkbox" id="paid" name="paid"/><br/>
	<label for="duties">Zakres obowiązków</label><br/><textarea name="duties" id="duties" rows="5" cols="20"></textarea><br/>
	<label for="requirements">Wymagania</label><br/><textarea name="requirements" id="requirements" rows="5" cols="20"></textarea><br/>
	<label for="technology">Technologie</label><br/>
	{foreach item=tech from=$technologies}
		<input type="checkbox" name ="tech_id_{$tech.id}" id="tech_id_{$tech.id}" value="{$tech.id}" /> {$tech.technology} <br/>
	{/foreach}
	<input type="submit" value="Wyślij" id="send" name="send" />
</form>
{$info}

{include file="footer.tpl"}